#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time: 2023/1/5 0:49
# @Author: 周阳
# @Email: 100530987@qq.com
# @File：shell.py
import subprocess
class Shel1:
    @staticmethod
    def execute(cmd):
        output, errors = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE,
                                          stderr=subprocess.PIPE).communicate()
        out_msg = output.decode("gbk")
        return out_msg